/**
 * Created by zhuyufeng on 2016/1/1.
 */
Ext.define('personModel', {
	extend: 'Ext.data.Model',
	fields: [ 'name','num','academy','major','class']
});
var personStore = Ext.create('Ext.data.Store', {
	model: 'personModel',
	autoLoad: true,
	pageSize: 10,
	proxy: {
		type: 'ajax',
		url : './json/person',
		reader: {
			type: 'json',
			root: 'rows',
			totalProperty: 'total'
		}
	}
});
var personGrid = Ext.create('Ext.grid.Panel', {
	store: personStore,
	columns: [
		{text: '姓名',width: 100,dataIndex: 'name'},
		{text: '学号',width: 150,dataIndex: 'num'},
		{text: '学院',width: 150,dataIndex: 'academy'},
		{text: '专业',width: 150,dataIndex: 'major'},
		{text: '班级',width: 150,dataIndex: 'class'}
	]
});